﻿using System.ComponentModel;

namespace Synology.DS.Interface.Entities.DiskStation
{
    public enum ErrorCode
    {
        [Description("Unknown error")]
        UnknownError = 100,
        [Description("Invalid parameter")]
        InvalidParameter = 101,
        [Description("The requested API does not exist")]
        ApiNotExists = 102,
        [Description("The requested method does not exist")]
        MethodNotExist = 103,
        [Description("The requested version does not support the functionality")]
        VersionNotSupported = 104,
        [Description("The logged in session does not have permission")]
        NotEnoughPermissions = 105,
        [Description("Session timeout")]
        SessionTimeout = 106,
        [Description("Session interrupted by duplicate login")]
        DuplicateLogin = 107,
        [Description("No such account or incorrect password")]
        InvalidAccountOrPassword = 400,
        [Description("Guest account disabled")]
        GuestAccountIsDisabled = 401,
        [Description("Account disabled")]
        AccountIsDisabled = 402,
        [Description("Wrong password")]
        WrongPassword = 403,
        [Description("Permission denied")]
        PermissionDenied = 404,
    }

    public class Error
    {
        public ErrorCode code { get; set; }
    }
}
